<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TracReports.aspx.cs" Inherits="TracReports" %>

<%@ Register Src="UserControls/RollUpReport.ascx" TagName="RollUpReport" TagPrefix="uc1" %>
<%@ Register Src="userControls/DetailReports.ascx" TagName="DetailReports" TagPrefix="uc2" %>
<%@ Register Src="userControls/TracID_Summary.ascx" TagName="TracID_Summary" TagPrefix="uc3" %>
<%@ Register Src="userControls/MTD_Sales.ascx" TagName="MTD_Sales" TagPrefix="uc4" %>
<%@ Register Src="userControls/Channels.ascx" TagName="Channels" TagPrefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Fade(Duration=0)" />
    <meta http-equiv="Page-Exit" content="progid:DXImageTransform.Microsoft.Fade(Duration=0)" />
    <title>ACC Dashboard Page</title>
    <script type="text/javascript" src="Visifire2.js"></script>
    <link type="text/css" href="css/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
    <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script>
    <script type="text/javascript" src="js/TracReports.js?1=3"></script>
    <link href="css/RollUp.css" rel="stylesheet" type="text/css" />
    <link href="../styles/acc.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            font: 64% 'Segoe UI' , Arial, Sans-Serif, "Trebuchet MS" , sans-serif;
            margin: 0px;
        }
        #grvAddressList
        {
            /*height: 100%;*/
            line-height: 15px;
            border-collapse: collapse;
            width: 270px;
        }
        fieldset
        {
            width: 80%;
            margin-left: 5%;
            padding-left: 5%;
            padding-top: 1em;
        }
    </style>
</head>
<body onload="loadScroll()" onunload="saveScroll()" style="filter: progid:DXImageTransform.Microsoft.gradient( endColorstr=#f8f8f8, startColorstr=#ffffff)">
    <form id="form1" runat="server">
    <div style="display: none">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </div>
    <div id="tabs">
        <ul>
            <li><a href="#tabs-2">Cumulative Reports</a> </li>
<%--            <li><a href="#tabs-3">Detail Report</a> </li>--%>
            <li><a href="#tabs-4">MTD Sales</a></li>
<%--             <li><a href="#tabs-5">Channel Sales</a> </li>--%>
            <li><a href="#tabs-1">Aerial View of Location (<% =Request.QueryString["TRAC_ID"] %>)&nbsp;<%= sStreetAddr %></a></li>
        </ul>
        <div id="tabs-1">
            <div id="myMap" style="position: relative; top: 0px; width: 100%; height: 100%">
                No Map Available.</div>
        </div>
        <div id="tabs-2">
            <uc1:RollUpReport ID="RollUpReport1" runat="server" TopLevel="Property" />
        </div>
        <div id="tabs-3"  style="display:none">
            <div id="details">
                <table cellpadding="0" cellspacing="0" style="width: 100%;">
                    <tr>
                        <td rowspan="3" id="report_results" runat="server" class="BgOrange" width="80%" valign="top">
                            &nbsp;
                        </td>
                        <td style="font: normal bold 9pt 'Arial Narrow'; border-bottom: solid 1px ButtonShadow;
                            border-top: solid 1px ButtonFace; padding: 5px 0px 0px 2px; width: 20%; background-color: ButtonFace"
                            valign="bottom" align="center" class="FgATT_Blue">
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/Excel_icon.gif" ToolTip="Export Addresses to an Excel Spreadsheet"
                                Style="float: right; padding-right: 4px; padding-bottom: 2px; cursor: pointer;"
                                onclick="CreateExcelSheet()" />
                            <%= RollUpReport1.RollupTitle %><br />
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" style="background-color: ButtonFace">
                            <asp:Panel ID="pnlAddressList" runat="server" Width="100%" ScrollBars="Vertical">
                                <table style="width: 90%;">
                                    <tr>
                                        <td valign="top">
                                            <asp:GridView ID="grvAddressList" runat="server" Font-Names="Arial Narrow" AutoGenerateColumns="False"
                                                OnRowDataBound="AddressList_RowDataBound" CellPadding="0" BorderStyle="None"
                                                Font-Bold="true" GridLines="None" ShowHeader="False">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblAddr" CssClass="lblAddr" runat="server" Text='<%# Eval("Addr") %>'
                                                                BackColor='<%# System.Drawing.ColorTranslator.FromHtml(Eval("Color").ToString()) %>'
                                                                Width="100%" Value='<%# Eval("ACCTS") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td style="font-family: Arial Narrow; font-weight: bold; border-bottom: solid 1px ButtonShadow;
                            border-top: solid 1px ButtonHighlight; padding: 2px; width: 20%; background-color: ButtonFace"
                            valign="bottom">
                            <table cellpadding="0" cellspacing="0" style="width: 100%; border-bottom: solid 1px;
                                border-top: solid 1px ButtonHighlight">
                                <tr>
                                    <td style="background-color: #a4f368; font-family: Arial Narrow" align="center">
                                        <asp:CheckBox ID="chkEligible" runat="server" Text="ELIGIBLE" Checked="true" onclick="chkAddressType_Click()" /><br />
                                        <%= Addrs.CountGreen.ToString("n0")%>
                                    </td>
                                    <td style="background-color: #47CAFF; font-family: Arial Narrow" align="center">
                                        <asp:CheckBox ID="chkSubscriber" runat="server" Text="SUBSCRIBER" Checked="true"
                                            onclick="chkAddressType_Click()" /><br />
                                        <%=  Addrs.CountBlue.ToString("n0") %>
                                    </td>
                                    <td style="background-color: #FFFFFF; font-family: Arial Narrow" align="center">
                                        <asp:CheckBox ID="chkNonElig" runat="server" Text="NON-ELIG" Checked="true" onclick="chkAddressType_Click()" /><br />
                                        <%= Addrs.CountWhite.ToString("n0")%>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="tabs-4">
            <uc4:MTD_Sales ID="MTD_Sales1" runat="server" />
        </div>
        <div id="tabs-5" style="display:none">
            <uc5:Channels ID="Channels1" runat="server" />
        </div>
    </div>
    <asp:HiddenField ID="hdnAddress" runat="server" />
    </form>
</body>
</html>
